package models

import (
	"time"
)

type BaseModel struct {
	Id         int64     `orm:"column(id);unique;auto;" json:"id"`
	CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime);description(创建时间)" json:"createTime"`
	UpdateTime time.Time `orm:"column(update_time);auto_now;type(datetime);description(更新时间)" json:"updateTime"`
	Creator    int64     `orm:"column(creator);description(创建者)"`
	Updater    int64     `orm:"column(updater);description(更新者)"`
	Status     int       `orm:"column(status);default(1);description(状态)" json:"status"`
}
